﻿<baseview:BaseView x:Class="CharacterCreation.Views.CharismaView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:baseview="clr-namespace:CharacterCreation.Views.Contracts" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    
    <Grid x:Name="LayoutRoot">
        <DataGrid ItemsSource="{Binding Items}" AutoGenerateColumns="False" RowEditEnding="DataGrid_RowEditEnding" RowHeaderWidth="30">
            <DataGrid.Columns>
                <DataGridTextColumn Header="Level" Width="50" Binding="{Binding Level, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
                <DataGridTextColumn Header="AA" Width="50" Binding="{Binding AppearanceAdjustment, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
            </DataGrid.Columns>
        </DataGrid>
    </Grid>
</baseview:BaseView>
